#ifndef CONNECTION_MANAGER_H
#define CONNECTION_MANAGER_H

#include <set>
#include <memory>
#include "connection.h"

class ConnectionManager {
public:
    void start(std::shared_ptr<Connection> connection);
    void stop(std::shared_ptr<Connection> connection);
    void stop_all();

    // 获取连接数量
    size_t get_connection_count();

private:
    std::set<std::shared_ptr<Connection>> connections_;
};

#endif